package com.news.mapper.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.news.mapper.entity.app.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * 1.会员表(User)表数据库访问层
 *
 * @author makejava
 * @since 2023-03-17 10:55:07
 */
public interface UserDao extends BaseMapper<User> {
    @Update("update t_user set password=#{pass},update_time=now() where phone=#{phone}")
    int updatePass(@Param("phone") String phone,@Param("pass") String pass);
}

